import 'package:flutter_nb_net/flutter_net.dart';

class WxpayOrderInfoResp extends BaseNetModel {
  int? code;
  String? msg;
  WxpayOrderInfoData? data;

  WxpayOrderInfoResp({this.data, this.code, this.msg});

  @override
  fromJson(Map<String, dynamic> json) {
    return WxpayOrderInfoResp(
      data: json['data'] == null ? null : WxpayOrderInfoData().fromJson(json['data']),
      code: json['code'],
      msg: json['msg'],
    );
  }
}

class WxpayOrderInfoData extends BaseNetModel {
  String? appid;
  String? partnerId;
  String? prepayId;
  String? packageValue;
  String? noncestr;
  String? timestamp;
  String? orderNo;
  String? sign;

  WxpayOrderInfoData({this.appid, this.partnerId, this.prepayId, this.packageValue, this.noncestr, this.timestamp, this.orderNo, this.sign});

  @override
  fromJson(Map<String, dynamic> json) {
    return WxpayOrderInfoData(
      appid: json['appid'],
      partnerId: json['partnerId'],
      prepayId: json['prepayId'],
      packageValue: json['packageValue'],
      noncestr: json['noncestr'],
      timestamp: json['timestamp'],
      orderNo: json['orderNo'],
      sign: json['sign'],
    );
  }
}